package com.lemon.service;

import com.lemon.domain.PageResult;
import com.lemon.domain.StocktakingTask;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;

public interface StocktakingTaskService extends IService<StocktakingTask>{

    /**
     * 手动执行一次定时任务
     * @param taskId 任务ID
     */
    void executeTaskOnce(Long taskId);

    void addStocktakingTask(StocktakingTask task);

    void updateStocktakingTask(StocktakingTask task);

    void deleteStocktakingTask(Long taskId);

    PageResult getPage(Integer page, Integer pageSize, String taskName, Integer category, Integer isEnable);
}
